package StudyCode.summary.myfile;

import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CopyDirectoryUsingFilesCopy {
	public static void main(String[] args) {
		Path originalDirectory = FileSystems.getDefault().getPath("E:\\迅雷下载");
		Path newDirectory = FileSystems.getDefault().getPath("E:\\Copy");
		try {
			Files.copy(originalDirectory, newDirectory);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
